class EdtNotification extends window.Notification {
    static permission = "granted";
    constructor(title, options) {
        // super(title, options);
        window.EdtUtils?.EdtNotify(title, options);
    }
    static requestPermission = (cb = null) => {
        if (!cb) return new Promise((resolve) => {
            resolve(EdtNotification.permission);
        });
        if ('function' == typeof cb) return cb(EdtNotification.permission);
        return EdtNotification.permission;
    }
}
window.Notification = EdtNotification;